Class MailBoxImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.MailBoxImpl
All Implemented Interfaces:
IPCObject, MailBox

public class MailBoxImpl extends IPCObjectImpl implements MailBox
Information provided by the PKI file:

    \class
    
    \brief Mail box access to retrive and delete mails.
    
    \example network().getDevice("PC0").getProcess("EmailClient").getEmailUser().getMailBox().deleteMailAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getMails

      public List<Mail> getMails()
      Information provided by the PKI file:
      
          \brief Returns all the mails in the mailbox.
          
          \return vector<Mail>, value is a list that contains all the mails.
          
              
      Specified by:
      getMails in interface MailBox
      Returns:
      List<Mail> Returns a List<Mail>
    • deleteMailAt

      public void deleteMailAt(int index)
      Information provided by the PKI file:
      
          \brief Deletes the mail at the given index.
          
          \param index, index of the mail entry to delete.
          
              
      Specified by:
      deleteMailAt in interface MailBox
      Parameters:
      index - Takes in a parameter of index